/**   
 * Copyright © 2016 北京之洲科技有限责任公司. All rights reserved.
 * 
 * @Title: DAO.java 
 * @Prject: carfactory
 * @Package: com.zizo.core 
 * @Description: TODO
 * @author: Alexis  
 * @email heyan0227@outlook.com
 * @date: 2016年7月22日 下午5:00:59 
 * @version: V1.0   
 */
package com.panny.newcar.core;

import java.sql.Connection;

/**
 * @ClassName: DAO
 * @Description: TODO
 * @author: Alexis
 * @date: 2016年7月22日 下午5:00:59
 */
public abstract class DAO implements DAOInterface {
	protected Connection currConn;
	protected Connection coreConn;

	/**
	 * @Title:DAO
	 * @Description: 构造方法
	 * @param currConn
	 * @param coreConn
	 */
	public DAO(Connection currConn, Connection coreConn) {
		super();
		this.currConn = currConn;
		this.coreConn = coreConn;
	}

	/**
	 * @Title:DAO
	 * @Description: 构造方法
	 * @param currConn
	 */
	public DAO(Connection currConn) {
		super();
		this.currConn = currConn;
	}

	/**
	 * @return the currConn
	 */
	public Connection getCurrConn() {
		return currConn;
	}

	/**
	 * @param currConn
	 *            the currConn to set
	 */
	public void setCurrConn(Connection currConn) {
		this.currConn = currConn;
	}

	/**
	 * @return the coreConn
	 */
	public Connection getCoreConn() {
		return coreConn;
	}

	/**
	 * @param coreConn
	 *            the coreConn to set
	 */
	public void setCoreConn(Connection coreConn) {
		this.coreConn = coreConn;
	}
}
